import { MockjsRequestOptions } from "mockjs"

export const printReq = (res :any, req: MockjsRequestOptions) => {
  console.groupCollapsed('%cMock Server收到的请求','color: #208015',`${req.url} 【${req.type}】 ${res.code}`)
  console.log('【输入】', req.body)
  console.log('【输出】', JSON.stringify(res))
  console.groupEnd()
  return res
}